#include <iostream>
#include <iomanip>
#include "point.h"
#include "point.cpp"

using namespace std;

int main(){
    Point *p;
    double x, y;
    int n;
    cin >> n;
    p = new Point [n];
    for ( int i = 0; i < n; i++){
    cin >> x >> y;
    p[i].set(x, y);
    }
	cout << fixed;
    for ( int i = 0; i < n; i++){
        for ( int j = 0; j < n; j++){
            cout << setprecision(2) << p[i].dist( p[j]) << "    ";
        }
        cout << endl;
    }
    delete []p;
    cout << endl;
    system("pause");
    return 0;
}

